package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.DbsqBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface DbsqService extends BaseService<DbsqBean> {

	DbsqBean getDbsqBeanById(String id) throws Exception;
	
	void removeDbsqBeanById(String id) throws Exception;
	
	void removeDbsqBeanByIds(String ids) throws Exception;
	
	DbsqBean saveDbsqBean(DbsqBean crm) throws Exception;
	
	DbsqBean updateDbsqBean(DbsqBean crm) throws Exception;
	
	Page<DbsqBean>  findDbsqBeanByCond(DbsqBean bean,
			Page<DbsqBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveDbsqBeanExt(String sql) throws Exception;

	String findDbsqBeanExtCreate(String tableName) throws Exception;

	String findDbsqBeanExtEdit(String tableName, String id)
			throws Exception;

	String findDbsqBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasDbsqBeanExtData(String tableName, String id)
			throws Exception;
}